{if $bdlist}
 {loop $bdlist $bd}
 {eval $avg=C::t('#aljbd#aljbd_comment')->count_avg_by_bid($bd['id']);$avg=intval($avg);}
<a href="plugin.php?id=aljbd&act=view&bid={$bd['id']}" class="list-group-item" data-name="newload">
    <div class="fr">
                {if $bd['distance']}{if $bd['distance']<1000}$bd['distance']m{else}{eval echo round($bd['distance']/1000,2)}km{/if}{/if}
    </div>
    <div class="richtxt-comm richtxt-img-defaultsize">
        <div class="fl">
            <img {if $settings['is_lazyload']['value']}src="$loading" data-original="{if file_exists($bd['logo'])}$bd['logo']{else}$noimg{/if}"{else}src="{if file_exists($bd['logo'])}$bd['logo']{else}$noimg{/if}"{/if} style="width:80px;height:80px;" alt="$bd['name']" class="richtxt-img lazy{$currpage}">
        </div>
        <div class="richtxt-body">
            <h4 style="height: 22px;overflow: hidden;line-height: 20px;font-weight:400;color:#333;">$bd['name']</h4>
			
			<p class="txt-comm txt-small l_addr" style="margin-top: 8px;width:70%"><img src="source/plugin/aljbd/images/sj/b_a.png" width=14 style="top: -2px;position: relative;">&nbsp;{$bd['addr']}</p>
            <p class="txt-comm txt-small" style="margin-top: 12px;">
                <img src="source/plugin/aljbd/images/{$avg}.gif" style="vertical-align:baseline">
                
                <span class="split"></span>{$bd['comment']} {lang aljbd:sj_dianpu_5}<span style="float:right">{$bd['view']} {lang aljbd:sj_dianpu_6}</span>
                
            </p>
			
        </div>
    </div>
</a>
{/loop}

{$max_page}
{$mes}
{/if}